import axios from 'axios'

async function getPostContent(id: string) {
  return axios.get(`http://localhost:3001/?postId=${id}`)
    .then(({ data }) => data)
}

export default getPostContent